package com.example.demo.javatest.thread.tongxin;

/**
 * Created by liujiahao on 2019/3/13.
 */
public class ThreadB extends Thread{
    private Object lock;
    private Service service;
    private DbTools dbTools;
    public ThreadB(Object lock, Service service,DbTools dbTools){
        this.lock=lock;
        this.service=service;
        this.dbTools=dbTools;
    }
    @Override
    public void run() {
        dbTools.insertB();
        //service.testMethod(lock);
    }
}
